import React from "react";
import { IRouteComponentProps } from "umi";
console.log(1111)
export default function ({children,location}:IRouteComponentProps){
    if(location.pathname==='/'){
        // console.log(children,"children3434343")
        return children
    }else{
        console.log(children,"不需要布局组件")
        return(
            <div>
                {/* <h1>布局组件</h1> */}
                {children}
            </div>
        )
    }
}
// console.log('layouts')

